<?php
include("include/config.inc.php");
if(!isset($_SESSION['s_activId']))
{
  $_SESSION['s_urlRedirectDir'] = $_SERVER['REQUEST_URI'];
  header("Location:checkLogin.php");
}
$qualityArry = array();
$i = 0;
$selectQuality = "SELECT color.colorId,color.colorName
                    FROM color
                    JOIN subItem ON subItem.colorId = color.colorId 
                   WHERE itemId = ".$_REQUEST['itemVal']."
                     AND sizeId = ".$_REQUEST['sizeVal']."
                     AND companyId = ".$_REQUEST['companyVal']."
                     AND qualityId = ".$_REQUEST['qualityVal']."
                ORDER BY colorName";
$selectQualityResult = mysql_query($selectQuality);
while($qualityRow = mysql_fetch_array($selectQualityResult))
{
	$qualityArry['colorId']   = $qualityRow['colorId'];
	$qualityArry['colorName'] = $qualityRow['colorName'];
	$i++;
}
include("./bottom.php");
$smarty->assign('qualityArry',$qualityArry);
$smarty->display('ajaxResponceQuality.tpl');
?>